package com.guodu.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.guodu.base.BaseDao;
import com.guodu.dao.ViewMaterialAppraisalThreeDao;
import com.guodu.entity.ViewMaterialAppraisalCom;
import com.guodu.entity.ViewMaterialAppraisalThree;

@Repository("viewMaterialAppraisalThreeDao")
public class ViewMaterialAppraisalThreeDaoImpl extends BaseDao implements ViewMaterialAppraisalThreeDao {

	@Override
	public List<ViewMaterialAppraisalThree> findByMonth(String month,Long funitsId) {
		// TODO Auto-generated method stub
		String hql = "from ViewMaterialAppraisalThree where funitsId="+funitsId+" and createMonth='"+month+"'";
		return super.find(hql);
	}

	@Override
	public List<ViewMaterialAppraisalCom> findComByMonth(String month,
			Long funitsId) {
		// TODO Auto-generated method stub
		String hql = "from ViewMaterialAppraisalCom where funitsId="+funitsId+" and createMonth='"+month+"'";
		return super.find(hql);
	}

}
